package com.dididoctor.patient.Activity.Capture;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.dididoctor.patient.Dialog.LoadingDialog;
import com.dididoctor.patient.MV.EduActivity;
import com.dididoctor.patient.R;


/**
 * @author nseer-hp9 警告
 */
public class ScanningWarnAct extends EduActivity {
    private TextView tv_warn_content;
    private ImageView btn_back;
    private LoadingDialog loading;
    private String result;
    private String[] string;

    @Override
    public void setContentLayout() {
        setContentView(R.layout.sanningwarn_act);
        result = getIntent().getStringExtra("result");
        string = result.split(":");
        // [爱伙伴]尊贵用户:学哥555 id:206
    }

    @Override
    public void init() {
        String s = getIntent().getStringExtra("result");
        btn_back = (ImageView) findViewById(R.id.btn_back);
        btn_back.setOnClickListener(this);
        tv_warn_content = (TextView) findViewById(R.id.tv_warn_content);

        Intent intent = getIntent();
        if (intent != null) {
            String warn_content = intent.getStringExtra("result");
            tv_warn_content.setText(warn_content);
        }
    }

    @Override
    public void onClickEvent(View view) {
        switch (view.getId()) {
            case R.id.btn_back:
                ScanningWarnAct.this.finish();
                break;

            default:
                break;
        }

    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
